package cn.com.egova.service.impl;

import cn.com.egova.dao.AccountDao;
import cn.com.egova.domain.Account;
import cn.com.egova.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yuanchao on 2020/6/27.
 */
@Service("accountService")
//@Transactional
public class AccountServiceImpl implements IAccountService {
    @Autowired
    private AccountDao accountDao;

    @Override
    public List<Account> findAll() {
        System.out.println("Service层findAll方法执行了....");
        return accountDao.findAll();
    }

    @Override
    public void saveAccount(Account account) {
        System.out.println("Service层saveAccount方法执行了....");
        accountDao.saveAccount(account);
    }
}
